using UnityEngine;

public class TutorialStep1 : MonoBehaviour
{
	[SerializeField]
	private GameObject arrow;

	[SerializeField]
	private GUIButton target;

	private void Awake()
	{
		if (PlayerPrefs.HasKey("Tutorial") && PlayerPrefs.GetInt("Tutorial") == 4)
		{
			PlayerPrefs.SetInt("Tutorial", 6);
		}
	}

	private void Start()
	{
		int @int = PlayerPrefs.GetInt("Tutorial", 0);
		if (@int < 1)
		{
			target.onClicked.AddListener(StepDone);
		}
		else
		{
			arrow.SetActive(value: false);
		}
	}

	private void StepDone()
	{
		arrow.SetActive(value: false);
		PlayerPrefs.SetInt("Tutorial", 1);
		target.onClicked.RemoveListener(StepDone);
	}
}
